#include "Camera.h"

#include "DirectXEngine.h"

Camera::Camera(void)
{
	name = L"Camera";
}

Camera::~Camera(void)
{
}

void Camera::Draw(void)
{
	SceneNode::Draw();

	    // set the view transform
    D3DXMATRIX matView;    // the view transform matrix
    D3DXMatrixLookAtLH(&matView,
			&D3DXVECTOR3 (2.0f, 5.0f, -4.0f),    // the camera position
			&D3DXVECTOR3 (0.0f, 0.0f, 0.0f),      // the look-at position
			&D3DXVECTOR3 (0.0f, 1.0f, 0.0f)		// the up direction
		);   

	CDirectXEngine::Instance()->d3ddev->SetTransform(D3DTS_VIEW, &matView);    // set the view transform to matView
	
}